# rf-scripts

Some personal scripts for testing RF electronics.

## vna-to-tdr.py

Usage:

    ./vna-to-tdr.py network.s2p

Convert the measurement results of a 2-port network from frequency domain
(as measured by a Vector Network Analyzer in S-parameters) to time domain
(as measured by a Time Domain Reflectometer, as impedance versus time).
This is possible by extrapolating the frequency response to DC, then
performing Inverse Fourier Transform - all is done automatically by calling
scikit-rf.

![Example from VNA to TDR](https://notabug.org/niconiconi/rf-scripts/raw/master/img/tdr1.png)

## vna-calibrate.py

WIP. It needs a full rewrite.
